package com.yh.util;

import java.io.*;

public class FileUtil {

    public static void doUpload(byte[] file,String path,String filename) throws IOException {
        File _file=new File(path);
        if (!_file.exists()){
            _file.mkdir();
        }
        OutputStream os=new FileOutputStream(path+"/"+filename);
        os.write(file);
        os.flush();
        os.close();
    }
}
